#!/usr/bin/env ruby

class Time
  # new behavior for built-in method
  def to_s
    return strftime('%Y-%m-%d %X')
  end
end

########################################

=begin
#doctest Demo Time.to_s
>> Time.local(2007, 'jan',  8,  8)
=> 2007-01-08 08:00:00
>> Time.local(2007, 'nov', 23, 23)
=> 2007-11-23 23:00:00
=end
